import React from 'react';
import {history} from 'umi';

import styles from './profile.css';

class Profile extends React.Component{
  render() {
    return (
      <div>
        <h1 className={styles.title}>Page profile</h1>
        <button onClick={()=>history.goBack()}>返回</button>
      </div>
    );
  }
}

Profile.wrappers = ['@/wrappers/auth']; //给Profile包裹一个高阶组件---auth //@指向src, 意思是从src/wrappers下查找auth.js
//↑ 固定写法

export default Profile;
